<template>
  <view>
    <view class="lz-status_bar">
      <view class="lz-top_view"></view>
    </view>
    <view class="text-detail">
      <view class="text-detail-content">
        <uParse :content="message_detail.data"/>
      </view>
    </view>
  </view>
</template>
<script>
  import { mapState } from "vuex";
	import uParse from '@/components/uParse/src/wxParse.vue'
export default {
  data () {
    return {
      message_detail: {},
      pages_params: {},
    }
  },
  onLoad (opts) {
    this.pages_params = opts
    this.get_xiaoxi_detail()
  },
  onShow () {
  },
  mounted () { },
  computed: {
    ...mapState(['userInfo','appId'])
  },
  components: {
    uParse
  },
  methods: {
    async get_xiaoxi_detail () {
      let res = await this.$lib.$http.post({
        url:this.$lib.$urlMap.videoUrl,
        data:{
			id:this.pages_params.id,
		},
        needLogin: true
      })
      if (res.code === 1) {
        this.message_detail = res
      }
    },
  }
}
</script>
<style>
page {
  background: #fff;
}
.text-detail {
  width: 100%;
  margin: 0 auto;
  padding: 14px;
  font-size: 16px;
  background: #fff;
}
.text-detail-content {
  line-height: 23px;
}
</style>
